<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title></title>
<link type="text/css" href="${request.contextPath}/css/alerts/jquery.alerts.css" rel="stylesheet" />
<link type="text/css" href="${request.contextPath}/css/common.css" rel="stylesheet" />
<link type="text/css" href="${request.contextPath}/css/main.css" rel="stylesheet" />
<!--引入jquery-->
<script type="text/javascript" src="${request.contextPath}/js/jquery.alerts.js"></script>
<script type="text/javascript">
	function checkForm()
	{	
		if($('#lname').val()==null || $('#lname').val()=='')
		{
			jAlert("请输入课程名称");
			return false;
		}else
			return true;
	}
</script>
</head>
<body>
<div class="portlet collapsible" >
	<div class="pageheader">新增课程信息</div>
	<hr>
		<div class="portlet-content">
			<s:form method="post" action="addSave" namespace="/Lesson">
			<div>
			<table class="InfoTable" >
				<tr>
					<td>课程名称：</td>
					<td><input type="text" name="lname" id="lname"/></td>
				</tr>
				<tr>
					<td>课程代码：</td>
					<td><input type="text" name="lcode" id="lcode"/></td>
				</tr>
				<tr>
					<td>课程描述：</td>
					<td><input type="text" name="ldes" id="ldes"/></td>
				</tr>
			</table>
			</div>
			<div class="functionButton">
				<s:submit cssClass="submitButton" value='%{getText("PageAction.Ok")}' onclick="return checkForm()"></s:submit>
				<input type="button" class="normalButton" value="<s:text name="PageAction.ReturnToList"/>" onclick="javascript:window.location.href='list.action'"/>
			</div>
			</s:form>
		</div>
</div>
</body>
</html>